package com.ruoyi.system.domain.parm;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 【请填写功能名称】对象 sys_order
 * 
 * @author ruoyi
 * @date 2024-04-02
 */
public class SysOrderParm extends BaseEntity
{
    private static final long serialVersionUID = 1L;


    /** 停车场id */
    @Excel(name = "停车场id")
    @ApiModelProperty(value = "停车场id",example = "",required = true)
    @NotNull
    private String parkingId;

    /** 车位号 */
    @Excel(name = "车位号")
    @ApiModelProperty(value = "车位号",example = "",required = true)
    @NotNull
    private String parkingSpacesId;


    /** 预约消费开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "预约消费开始时间",example = "2024-02-25 10:25:20",required = true)
    @NotNull
    private Date consumptionStartTime;

    /** 预约消费结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "预约消费结束时间",example = "2024-02-25 11:25:20",required = true)
    @NotNull
    private Date consumptionEndTime;


    /** 预约消费金额 */
    @Excel(name = "预约消费金额")
    @ApiModelProperty(value = "预约消费金额",example = "",required = true)
    @NotNull
    private BigDecimal preConsumptionAmount;


    public void setParkingId(String parkingId)
    {
        this.parkingId = parkingId;
    }

    public String getParkingId()
    {
        return parkingId;
    }
    public void setParkingSpacesId(String parkingSpacesId)
    {
        this.parkingSpacesId = parkingSpacesId;
    }

    public String getParkingSpacesId()
    {
        return parkingSpacesId;
    }

    public void setConsumptionStartTime(Date consumptionStartTime) 
    {
        this.consumptionStartTime = consumptionStartTime;
    }

    public Date getConsumptionStartTime() 
    {
        return consumptionStartTime;
    }
    public void setConsumptionEndTime(Date consumptionEndTime) 
    {
        this.consumptionEndTime = consumptionEndTime;
    }

    public Date getConsumptionEndTime() 
    {
        return consumptionEndTime;
    }

    public void setPreConsumptionAmount(BigDecimal preConsumptionAmount) 
    {
        this.preConsumptionAmount = preConsumptionAmount;
    }

    public BigDecimal getPreConsumptionAmount() 
    {
        return preConsumptionAmount;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("parkingId", getParkingId())
            .append("parkingSpacesId", getParkingSpacesId())
            .append("consumptionStartTime", getConsumptionStartTime())
            .append("consumptionEndTime", getConsumptionEndTime())
            .append("preConsumptionAmount", getPreConsumptionAmount())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
